package controller;
@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;


    @RequestMapping("/findAll")
    public String findAll(Model model,@RequestParam(name = "page",required = true,defaultValue = "1") int page,
                          @RequestParam(name = "size",required = true,defaultValue = "5") int size){
        List<User> userList=userService.findAll(null,page,size);
        model.addAttribute("userList",userList);
        return "userList";


    }

}
